<template>
  <el-container>
    <el-container>
      <el-header class="app-header" height="100px">
        <el-row>
          <el-col :span="18" style="text-align: left">
            <img src="../../assets/u3.png" alt="标题">
            <span class="header-title">IT Appointment Tool</span>
          </el-col>
          <el-col :span="3" class="link">
            <router-link to="/feedback">Feedback</router-link>
          </el-col>
          <el-col :span="3" class="link">
            <router-link to="/aboutUs">About Us</router-link>
          </el-col>
        </el-row>
      </el-header>
      <el-main>
        <div class="big-font">Welcome IT Appointment Tool</div>
      </el-main>
    </el-container>
    <el-aside width="150px">
      <ul class="aside-menu">
        <li class="menu-item" @click="$router.push('/bookAppointment')">
          <img src="../../assets/u9.png" alt="">
          <span>Book Appointment</span>
        </li>
        <li class="menu-item" @click="$router.push('/appointmentHistory')">
          <img src="../../assets/u17.png" alt="">
          <span>Appointment History</span>
        </li>
        <li class="menu-item" @click="$router.push('/admin')">
          <img src="../../assets/u13.png" alt="">
          <span>Admin</span>
        </li>
      </ul>
    </el-aside>
  </el-container>
</template>

<script>

export default {
  name: 'Home',
  components: {
  }
}
</script>

<style lang="css" scoped>
.app-header {
  background-color: rgba(51, 102, 102, 1);
  border-bottom: 2px solid black;
  height: 100px;
}

.big-font {
  font-size: 32px;
  font-weight: 700;
  line-height: 200px;
}

.header-title {
  padding-left: 1em;
  line-height: 100px;
  font-weight: 700;
  font-size: 24px;
  color: white;
  text-align: left;
}

.link > a {
  line-height: 100px;
  color: #00cccc;
}

.aside-menu .menu-item {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 150px;
  height: 150px;
  font-size: 14px;
  border-left: 2px solid black;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  cursor: pointer;
}

.menu-item img {
  margin-bottom: 10px;
}
</style>
